package com.johnny.nob.domain.business;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.johnny.core.hibernate.orm.IdEntity;

@Entity
public class Price extends IdEntity {
	private String currency;
	private Uom unit;
	private Date fromDate;
	private Date toDate;
	private int quantity;
	private double price;
	private long recId;

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	@ManyToOne
	public Uom getUnit() {
		return unit;
	}

	public void setUnit(Uom unit) {
		this.unit = unit;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getToDate() {
		return toDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public long getRecId() {
		return recId;
	}

	public void setRecId(long recId) {
		this.recId = recId;
	}

}
